
package com.weiqiao.mall.service;

import com.weiqiao.mall.domain.ShopkeeperEntity;
import com.weiqiao.mall.service.vo.AddressVO;
import org.bson.Document;
import org.bson.conversions.Bson;

import java.util.Map;

public interface IShopkeeperService extends IBaseWeiXinService {

    /**
     * 查询所有门店信息
     *
     * @param filter 条件
     * @return entity
     */
    ShopkeeperEntity getOneShop(Bson filter);

    /**
     * 更新 店铺信息
     *
     * @param entity
     * @return bool
     */
    boolean updateShopByEntity(ShopkeeperEntity entity);

    /**
     * 更新 店铺信息
     *
     * @param filter filter
     * @param bson   bson
     * @return bool
     */
    boolean updateShopByBson(Bson filter, Bson bson);

    /**
     * 更新 店铺信息
     *
     * @param filter filter
     * @param json   json
     * @return bool
     */
    boolean updateShopByJson(Bson filter, String json);

    /**
     * 更新编辑地址
     *
     * @param address
     * @return bool
     */
    boolean updateAddress(AddressVO address);

    /**
     * 删除地址
     *
     * @param address
     * @return bool
     */
    boolean deleteAddress(AddressVO address);

    /**
     * 获取店铺信息
     *
     * @param address
     * @return bool
     */
    Map getMallList(AddressVO address);
}
